
<%@page import="controller.SessionAttribute"%>
<%
    session = request.getSession();
    Integer idOrder = (Integer) session.getAttribute(SessionAttribute.TRACKING_NUMBER);
    if (idOrder == null) {
%>
<script> window.location.replace('index.jsp');</script>
<%    } else {
    session.removeAttribute(SessionAttribute.TRACKING_NUMBER);
%>    
<div class="block">
    <div style="text-align: center; line-height: 2.5em;">
        <h3>Thank you!</h3>
        <h3>Your tracking number is <a href="index.jsp?content=conditionview&order=<%= idOrder%>"> <%= idOrder%> </a></h3>
        <h3>You can view your orders on link <a href="index.jsp?content=condition">Verify the order</a></h3>
        <a href="index.jsp"><input type="button" class="btn-buy" value="Continue shopping"></a>
    </div>
</div>
<%
    }
%>